﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Library/Reportes.master" AutoEventWireup="false" CodeFile="ResumenPriorizacion.aspx.vb" Inherits="Reportes_ResumenPriorizacion" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type ="text/css">

    .AlineacionDerecha
    {
        text-align : right ;
    }

        .style3
        {
            width: 821px;
        }

    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h1>Priorización de familias</h1>
    <p>&nbsp;</p>
    <p>Muestra las familas por orden de prioridad de acompañamiento para cada módulo asi:</p>
    <table>
    <tr>
    <td valign = "top" class="style3">
    <table>
    <tr>
    <td>
      <asp:Image Width="50%" Height="50%"  ID="Image11" runat="server" ImageUrl="~/Imagenes/SemVerde.jpg"/>
    </td>
    <td>
    entre 0% y 30%  prioridad de acompañamiento baja
    </td>
    </tr>
    <tr>
    <td>
      <asp:Image Width="50%" Height="50%"  ID="Image4" runat="server" ImageUrl="~/Imagenes/SemAmarillo.jpg"/>
    </td>
    <td>
    entre 31% y 60%  prioridad de acompañamiento media
    </td>
    </tr>
    <tr>
    <td>
      <asp:Image Width="50%" Height="50%"  ID="Image5" runat="server" ImageUrl="~/Imagenes/SemRojo.jpg"/>
    </td>
    <td>
    mayor a 60%  prioridad de acompañamiento alta
    </td>
    </tr>

    </table>
    <br /><asp:HiddenField 
                ID="hdStoredProcedure" runat="server" />
            <asp:HiddenField ID="hdReporteName" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate >

    <table>
        <tr>
            <th colspan="6">
                Opciones de filtro
            </th>
        </tr>
        <tr>
            <td>
                Proyecto
            </td>
            <td>
                <asp:DropDownList ID="ddlProyectos" runat="server" AutoPostBack="true" >
                </asp:DropDownList>
            </td>
         <td>
                Visita
            </td>
            <td>
                <asp:DropDownList ID="ddlVisita" runat="server">
                </asp:DropDownList>
            </td>
        
        <td>Sexo</td>
        <td>
            <asp:DropDownList ID="ddlSexo" runat="server">
            </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                Departamento
            </td>
            <td>
                <asp:DropDownList ID="ddlDepto" runat="server" AutoPostBack="true">
                </asp:DropDownList>
            </td>
            <td>
                Municipio
            </td>
            <td>
                <asp:DropDownList ID="ddlMunicipio" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                Localizacion
            </td>
            <td>
                <asp:DropDownList ID="ddlLocalizacion" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
     </table>
    </ContentTemplate>
    </asp:UpdatePanel>
     <table>        
        <tr>
            <td colspan="2" class="botones">
                <asp:Button ID="btnConsultar" runat="server" Text="Ver reporte" CssClass="boton" />
            </td>
        </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td valign = "top" class="style3">
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
            Font-Size="8pt" InteractiveDeviceInfos="(Collection)" ShowToolBar="False" 
            SizeToReportContent="True" WaitMessageFont-Names="Verdana" 
            WaitMessageFont-Size="14pt" BorderStyle="None" Height="124px">
            <LocalReport ReportPath="Reportes\rdls\rptPriorizacionFamilias.rdlc">
            </LocalReport>
        </rsweb:ReportViewer>

        <br />
        <rsweb:ReportViewer ID="ReportViewer2" runat="server" Font-Names="Verdana" 
            Font-Size="8pt" InteractiveDeviceInfos="(Collection)" 
            WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt">
            <LocalReport ReportPath="Reportes\rdls\rptPriorizacionFamiliasDetalle.rdlc">
            </LocalReport>
        </rsweb:ReportViewer>

    </td>
    </tr>
    </table>

    <asp:GridView ID="grdResultado" runat="server" AutoGenerateColumns="False">
        <Columns>
         <asp:BoundField DataField="RowNumber" 
                HeaderText="Orden de priorización"
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right"  CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>

            <asp:TemplateField HeaderText="Código Coba">
                <ItemTemplate>                    
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl = '<%# "DetallePriorizacion.aspx?idhogar=" & Eval("idhogar")%>'><%# Eval("Codcoba")%></asp:HyperLink>
                </ItemTemplate>
                
            </asp:TemplateField>
            <asp:BoundField DataField="Miembros" HeaderText="Miembros de la familia" />
            <asp:BoundField DataField="EducacionP" HeaderText="Prioridad educación" 
                DataFormatString="{0:P2}"  ItemStyle-HorizontalAlign = "Right"  >            

<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha"></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Image  Width="50%" Height="50%" ID="Image1" runat="server" ImageUrl="~/Imagenes/SemRojo.jpg" Visible = '<%# cdbl(eval("EducacionP"))*100 > 60.0 and isnothing(eval("EducacionP"))=false %>' />
                    <asp:Image  Width="50%" Height="50%" ID="Image2" runat="server" ImageUrl="~/Imagenes/Semamarillo.jpg" Visible = '<%# cdbl(eval("EducacionP"))*100 > 30.00 and cdbl(eval("EducacionP"))*100 <= 60.00 and isnothing(eval("EducacionP"))=false  %>' />
                    <asp:Image  Width="50%" Height="50%" ID="Image3" runat="server" ImageUrl="~/Imagenes/Semverde.jpg"  Visible = '<%# cdbl(eval("EducacionP"))*100 <= 30.00  and isnothing(eval("EducacionP"))=false%>' />                    
                
                </ItemTemplate>               
            </asp:TemplateField>
            <asp:BoundField DataField="SaludSexualP" 
                HeaderText="Prioridad salud sexual y reproductiva" DataFormatString="{0:P2}" 
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right"  CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
                        <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Image  Width="50%" Height="50%" ID="Image1" runat="server" ImageUrl="~/Imagenes/SemRojo.jpg" Visible = '<%# cdbl(eval("SaludSexualP"))*100 > 60.0 and isnothing(eval("SaludSexualP"))=false %>' />
                    <asp:Image  Width="50%" Height="50%" ID="Image2" runat="server" ImageUrl="~/Imagenes/Semamarillo.jpg" Visible = '<%# cdbl(eval("SaludSexualP"))*100 > 30.00 and cdbl(eval("SaludSexualP"))*100 <= 60.00  and isnothing(eval("SaludSexualP"))=false %>' />
                    <asp:Image  Width="50%" Height="50%" ID="Image3" runat="server" ImageUrl="~/Imagenes/Semverde.jpg"  Visible = '<%# cdbl(eval("SaludSexualP"))*100 <= 30.00 and isnothing(eval("SaludSexualP"))=false %>' />                    
                
                </ItemTemplate>               
            </asp:TemplateField>
            <asp:BoundField DataField="CrecimientoYdesarrolloP" 
                HeaderText="Prioridad crecimiento y desarrollo"  DataFormatString="{0:P2}" 
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Image  Width="50%" Height="50%" ID="Image1" runat="server" ImageUrl="~/Imagenes/SemRojo.jpg" Visible = '<%# cdbl(eval("CrecimientoYdesarrolloP")) > 0.6  and isnothing(eval("CrecimientoYdesarrolloP"))=false%>' />
                    <asp:Image  Width="50%" Height="50%" ID="Image2" runat="server" ImageUrl="~/Imagenes/Semamarillo.jpg" Visible = '<%# cdbl(eval("CrecimientoYdesarrolloP")) > 0.3 and cdbl(eval("CrecimientoYdesarrolloP")) <=0.6   and isnothing(eval("CrecimientoYdesarrolloP"))=false%>' />
                    <asp:Image  Width="50%" Height="50%" ID="Image3" runat="server" ImageUrl="~/Imagenes/Semverde.jpg"  Visible = '<%# cdbl(eval("CrecimientoYdesarrolloP")) <= 0.3  and isnothing(eval("CrecimientoYdesarrolloP"))=false%>' />                    
                </ItemTemplate>               
            </asp:TemplateField>
            <asp:BoundField DataField="ComplementarioP" 
                HeaderText="Prioridad complementario" DataFormatString="{0:P2}" 
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Image Width="50%" Height="50%" ID="Image1" runat="server" ImageUrl="~/Imagenes/SemRojo.jpg" Visible = '<%# cdbl(eval("ComplementarioP")) > 0.6 and isnothing(eval("ComplementarioP"))=false %>' />
                    <asp:Image Width="50%" Height="50%"  ID="Image2" runat="server" ImageUrl="~/Imagenes/Semamarillo.jpg" Visible = '<%# cdbl(eval("ComplementarioP")) > 0.3 and cdbl(eval("ComplementarioP")) <=0.6 and isnothing(eval("ComplementarioP"))=false  %>' />
                    <asp:Image  Width="50%" Height="50%" ID="Image3" runat="server" ImageUrl="~/Imagenes/Semverde.jpg"  Visible = '<%# cdbl(eval("ComplementarioP")) <= 0.3 and isnothing(eval("ComplementarioP"))=false %>' />                    
                </ItemTemplate>               
            </asp:TemplateField>
            <asp:BoundField DataField="PsicosocialP" HeaderText="Prioridad psicosocial" 
                DataFormatString="{0:P2}" ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Image Width="50%" Height="50%"  ID="Image1" runat="server" ImageUrl="~/Imagenes/SemRojo.jpg" Visible = '<%# cdbl(eval("PsicosocialP")) > 0.6 and isnothing(eval("PsicosocialP"))=false%>' />
                    <asp:Image Width="50%" Height="50%"  ID="Image2" runat="server" ImageUrl="~/Imagenes/Semamarillo.jpg" Visible = '<%# cdbl(eval("PsicosocialP")) > 0.3 and cdbl(eval("PsicosocialP")) <=0.6  and isnothing(eval("PsicosocialP"))=false %>' />
                    <asp:Image  Width="50%" Height="50%" ID="Image3" runat="server" ImageUrl="~/Imagenes/Semverde.jpg"  Visible = '<%# cdbl(eval("PsicosocialP")) <= 0.3 and  isnothing(eval("PsicosocialP"))=false %> '  />                    
                </ItemTemplate>               
            </asp:TemplateField>
            
            <asp:BoundField DataField="totalModulos" 
                HeaderText="Priorización promedio por módulos" DataFormatString="{0:P2}"  
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Image Width="50%" Height="50%"  ID="Image1" runat="server" ImageUrl="~/Imagenes/SemRojo.jpg"  Visible = '<%# cdbl(eval("totalModulos")) > 0.6 and isnothing(eval("totalModulos"))=false  %>' />
                    <asp:Image Width="50%" Height="50%"  ID="Image2" runat="server" ImageUrl="~/Imagenes/Semamarillo.jpg"  Visible = '<%# cdbl(eval("totalModulos")) > 0.3 and cdbl(eval("totalModulos")) <=0.6  and isnothing(eval("totalModulos"))=false  %>' />
                    <asp:Image Width="50%" Height="50%"  ID="Image3" runat="server" ImageUrl="~/Imagenes/Semverde.jpg"   Visible = '<%# cdbl(eval("totalModulos")) <= 0.3 and isnothing(eval("totalModulos"))=false  %>' />                    
                </ItemTemplate>               
            </asp:TemplateField>

            
            
            
            <asp:BoundField DataField="PrioridadProfesional" 
                HeaderText="Prioridad asignada por el profesional" DataFormatString="{0:P2}"  
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>

            <asp:BoundField DataField="PrioridadAcompanamiento" 
                HeaderText=""  
                />
            
<%--
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Label Text = "Alta"  runat="server"  Visible = '<%# cdbl(eval("PrioridadProfesional")) > 0.6 and isnothing(eval("PrioridadProfesional"))=false  %>' />
                    <asp:Label Text = "Media"  runat="server" Visible = '<%# cdbl(eval("PrioridadProfesional")) > 0.3 and cdbl(eval("PrioridadProfesional")) <=0.6  and isnothing(eval("PrioridadProfesional"))=false  %>' />
                    <asp:Label Text = "Baja"  runat="server"   Visible = '<%# cdbl(eval("PrioridadProfesional")) <= 0.3 and isnothing(eval("PrioridadProfesional"))=false  %>' />                    
                </ItemTemplate>               
            </asp:TemplateField>--%>


            
            <asp:BoundField DataField="totalSuma" 
                HeaderText="Priorización final (promedio entre priorización por módulos y la asignada por profesional)" DataFormatString="{0:P2}"  
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Image Width="50%" Height="50%"  ID="Image1" runat="server" ImageUrl="~/Imagenes/SemRojo.jpg"   Visible = '<%# cdbl(eval("totalSuma")) > 0.6 and isnothing(eval("totalSuma"))=false  %>' />
                    <asp:Image Width="50%" Height="50%"  ID="Image2" runat="server" ImageUrl="~/Imagenes/Semamarillo.jpg"  Visible = '<%# cdbl(eval("totalSuma")) > 0.3 and cdbl(eval("totalSuma")) <=0.6  and isnothing(eval("totalSuma"))=false  %>' />
                    <asp:Image Width="50%" Height="50%"  ID="Image3" runat="server" ImageUrl="~/Imagenes/Semverde.jpg"  Visible = '<%# cdbl(eval("totalSuma")) <= 0.3 and isnothing(eval("totalSuma"))=false  %>' />                    
                </ItemTemplate>               
            </asp:TemplateField>



        </Columns>
    </asp:GridView>
    
    <asp:GridView ID="grdExportarExcel" runat="server" AutoGenerateColumns="False">
        <Columns>
           <asp:BoundField DataField="RowNumber" 
                HeaderText="Orden de priorización"  
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right"  CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="Código Coba">
                <ItemTemplate>                    
                    <%--<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl = '<%# "DetallePriorizacion.aspx?idhogar=" & Eval("idhogar")%>'><%# Eval("Codcoba")%></asp:HyperLink>--%>
                <asp:label runat="server" Text ='<%# Eval("Codcoba")%>' />
                </ItemTemplate>
                
            </asp:TemplateField>
            <asp:BoundField DataField="Miembros" HeaderText="Miembros de la familia" />
            <asp:BoundField DataField="EducacionP" HeaderText="Prioridad educación" 
                DataFormatString="{0:P2}"  ItemStyle-HorizontalAlign = "Right"  >            

<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha"></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="" >
                <ItemTemplate>
                    
                    <asp:Label Text = "Alta"  runat="server" Visible = '<%# cdbl(eval("EducacionP"))*100 > 60.0 and isnothing(eval("EducacionP"))=false  %>' />
                    <asp:Label Text = "Media"  runat="server"  Visible = '<%# cdbl(eval("EducacionP"))*100 > 30.00 and cdbl(eval("EducacionP"))*100 <= 60.00   and isnothing(eval("EducacionP"))=false %>' />
                    <asp:Label Text = "Baja"  runat="server"  Visible = '<%# cdbl(eval("EducacionP"))*100 <= 30.00  and isnothing(eval("EducacionP"))=false %>' />                    
                
                </ItemTemplate>               
            </asp:TemplateField>
            <asp:BoundField DataField="SaludSexualP" 
                HeaderText="Prioridad salud sexual y reproductiva" DataFormatString="{0:P2}" 
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right"  CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
                        <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Label Text = "Alta"  runat="server"  Visible = '<%# cdbl(eval("SaludSexualP"))*100 > 60.0 and isnothing(eval("SaludSexualP"))=false  %>' />
                    <asp:Label Text = "Media"  runat="server"  Visible = '<%# cdbl(eval("SaludSexualP"))*100 > 30.00 and cdbl(eval("SaludSexualP"))*100 <= 60.00  and isnothing(eval("SaludSexualP"))=false  %>' />
                    <asp:Label Text = "Baja"  runat="server"   Visible = '<%# cdbl(eval("SaludSexualP"))*100 <= 30.00 and isnothing(eval("SaludSexualP"))=false  %>' />                    
                
                </ItemTemplate>               
            </asp:TemplateField>
            <asp:BoundField DataField="CrecimientoYdesarrolloP" 
                HeaderText="Prioridad crecimiento y desarrollo"  DataFormatString="{0:P2}" 
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Label Text = "Alta"  runat="server"  Visible = '<%# cdbl(eval("CrecimientoYdesarrolloP")) > 0.6 and isnothing(eval("CrecimientoYdesarrolloP"))=false  %>' />
                    <asp:Label Text = "Media"  runat="server" Visible = '<%# cdbl(eval("CrecimientoYdesarrolloP")) > 0.3 and cdbl(eval("CrecimientoYdesarrolloP")) <=0.6  and isnothing(eval("CrecimientoYdesarrolloP"))=false  %>' />
                    <asp:Label Text = "Baja"  runat="server"  Visible = '<%# cdbl(eval("CrecimientoYdesarrolloP")) <= 0.3  and isnothing(eval("CrecimientoYdesarrolloP"))=false %>' />                    
                </ItemTemplate>               
            </asp:TemplateField>
            <asp:BoundField DataField="ComplementarioP" 
                HeaderText="Prioridad complementario" DataFormatString="{0:P2}" 
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Label Text = "Alta"  runat="server"  Visible = '<%# cdbl(eval("ComplementarioP")) > 0.6 and isnothing(eval("ComplementarioP"))=false  %>' />
                    <asp:Label Text = "Media"  runat="server" Visible = '<%# cdbl(eval("ComplementarioP")) > 0.3 and cdbl(eval("ComplementarioP")) <=0.6  and isnothing(eval("ComplementarioP"))=false  %>' />
                    <asp:Label Text = "Baja"  runat="server"   Visible = '<%# cdbl(eval("ComplementarioP")) <= 0.3 and isnothing(eval("ComplementarioP"))=false  %>' />                    
                </ItemTemplate>               
            </asp:TemplateField>
            <asp:BoundField DataField="PsicosocialP" HeaderText="Prioridad psicosocial" 
                DataFormatString="{0:P2}" ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Label Text = "Alta"  runat="server"  Visible = '<%# cdbl(eval("PsicosocialP")) > 0.6 and isnothing(eval("PsicosocialP"))=false  %>' />
                    <asp:Label Text = "Media"  runat="server"  Visible = '<%# cdbl(eval("PsicosocialP")) > 0.3 and cdbl(eval("PsicosocialP")) <=0.6   and isnothing(eval("PsicosocialP"))=false %>' />
                    <asp:Label Text = "Baja"  runat="server"  Visible = '<%# cdbl(eval("PsicosocialP")) <= 0.3 and isnothing(eval("PsicosocialP"))=false  %>' />                    
                </ItemTemplate>               
            </asp:TemplateField>
            

            <asp:BoundField DataField="totalModulos" 
                HeaderText="Priorización promedio por módulos" DataFormatString="{0:P2}"  
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Label ID="Label1" Text = "Alta"  runat="server"  Visible = '<%# cdbl(eval("totalModulos")) > 0.6 and isnothing(eval("totalModulos"))=false  %>' />
                    <asp:Label ID="Label2" Text = "Media"  runat="server" Visible = '<%# cdbl(eval("totalModulos")) > 0.3 and cdbl(eval("totalModulos")) <=0.6  and isnothing(eval("totalModulos"))=false  %>' />
                    <asp:Label ID="Label3" Text = "Baja"  runat="server"   Visible = '<%# cdbl(eval("totalModulos")) <= 0.3 and isnothing(eval("totalModulos"))=false  %>' />                    
                </ItemTemplate>               
            </asp:TemplateField>

            
            
            
            <asp:BoundField DataField="PrioridadProfesional" 
                HeaderText="Prioridad asignada por el profesional" DataFormatString="{0:P2}"  
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>

            <asp:BoundField DataField="PrioridadAcompanamiento" 
                HeaderText=""  
                />
            
<%--
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Label Text = "Alta"  runat="server"  Visible = '<%# cdbl(eval("PrioridadProfesional")) > 0.6 and isnothing(eval("PrioridadProfesional"))=false  %>' />
                    <asp:Label Text = "Media"  runat="server" Visible = '<%# cdbl(eval("PrioridadProfesional")) > 0.3 and cdbl(eval("PrioridadProfesional")) <=0.6  and isnothing(eval("PrioridadProfesional"))=false  %>' />
                    <asp:Label Text = "Baja"  runat="server"   Visible = '<%# cdbl(eval("PrioridadProfesional")) <= 0.3 and isnothing(eval("PrioridadProfesional"))=false  %>' />                    
                </ItemTemplate>               
            </asp:TemplateField>--%>


            
            <asp:BoundField DataField="totalSuma" 
                HeaderText="Priorización final (promedio entre priorización por módulos y la asignada por profesional)" DataFormatString="{0:P2}"  
                ItemStyle-HorizontalAlign = "Right" >
<ItemStyle HorizontalAlign="Right" CssClass="AlineacionDerecha" ></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <asp:Label ID="Label1" Text = "Alta"  runat="server"  Visible = '<%# cdbl(eval("totalSuma")) > 0.6 and isnothing(eval("totalSuma"))=false  %>' />
                    <asp:Label ID="Label2" Text = "Media"  runat="server" Visible = '<%# cdbl(eval("totalSuma")) > 0.3 and cdbl(eval("totalSuma")) <=0.6  and isnothing(eval("totalSuma"))=false  %>' />
                    <asp:Label ID="Label3" Text = "Baja"  runat="server"   Visible = '<%# cdbl(eval("totalSuma")) <= 0.3 and isnothing(eval("totalSuma"))=false  %>' />                    
                </ItemTemplate>               
            </asp:TemplateField>



        </Columns>
    </asp:GridView>
</asp:Content>

